package com.Pratice;

import java.util.Scanner;

public class PREV1 {

	public static void main(String[] args){
		long x,y,z;
		Scanner scan = new Scanner(System.in);
		x = scan.nextLong();
		y = scan.nextLong();
		z = scan.nextLong();
		
		long temp = getLcm(x,y);
		System.out.println(getLcm(temp,z));
	
	}
	public static long getLcm(long a,long b){
		return a*b/find(a,b);
	}	
	public static long find(long m,long n){
		return m%n == 0?n : find(n,m%n);
	}
}